package com.wkk.expection;

import javax.servlet.http.HttpServletRequest;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ResponseBody;

@ControllerAdvice
public class MyException {
	@org.springframework.web.bind.annotation.ExceptionHandler(Exception.class)
	@ResponseBody
	public String ExceptionHandler(HttpServletRequest req, Exception e) {
		
		
		
		return "服务器忙，请稍后再试";
	}
}
